Class DeviceFactoryImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.DeviceFactoryImpl
All Implemented Interfaces:
IPCObject, DeviceFactory

public class DeviceFactoryImpl extends IPCObjectImpl implements DeviceFactory
Information provided by the PKI file:

    \class DeviceFactory
    
    \brief The factory of devices.
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • getDescriptor

      public DeviceDescriptor getDescriptor(DeviceType type, String model)
      Information provided by the PKI file:
      
          \brief Returns the Descriptor of the device
          
          \param type, DeviceType
          \return DeviceType, the type of this device.
          Device types:       eRouter = 0,
          eSwitch = 1,
          eCloud = 2,
          eBridge = 3,
          eHub = 4,
          eRepeater = 5,
          eCoAxialSplitter = 6,
          eAccessPoint = 7,
          ePc = 8,
          eServer = 9,
          ePrinter = 10,
          eWirelessRouter = 11,
          eIpPhone = 12,
          eDslModem = 13,
          eCableModem = 14,
          eRemoteNetwork = 15,
          eMultiLayerSwitch = 16,
          eLaptop = 17,
          eTabletPC = 18,
          ePda = 19,
          eWirelessEndDevice = 20,
          eWiredEndDevice = 21,
          eTV = 22,
          eHomeVoip = 23,
          eAnalogPhone = 24,
          eMultiUser = 25,
          eASA = 26,
          eIoE = 27,
          eHomeGateway = 28,
          eCellTower = 29,
          eCentralOfficeServer = 30,
          eWirelessLanController = 31,
          
          \param model, the device model in string format
          
              
      Specified by:
      getDescriptor in interface DeviceFactory
      Parameters:
      type - Takes in a parameter of type
      model - Takes in a parameter of model
      Returns:
      DeviceDescriptor Returns a DeviceDescriptor
    • getAvailableDeviceCount

      public int getAvailableDeviceCount()
      Information provided by the PKI file:
      
          \brief Returns the number of available device type
          
          \return int, number of available device type
          
              
      Specified by:
      getAvailableDeviceCount in interface DeviceFactory
      Returns:
      int Returns a int
    • getAvailableDeviceAt

      public DeviceDescriptor getAvailableDeviceAt(int index)
      Information provided by the PKI file:
      
          \brief Returns the available device  descriptorat a specified index
          
          \param index, a specified index
          
          \return DeviceDescriptor, DeviceDescriptor object
          
              
      Specified by:
      getAvailableDeviceAt in interface DeviceFactory
      Parameters:
      index - Takes in a parameter of index
      Returns:
      DeviceDescriptor Returns a DeviceDescriptor
    • getAvailableDeviceForTypeCount

      public int getAvailableDeviceForTypeCount(DeviceType type)
      Information provided by the PKI file:
      
          \brief Returns the available device model for a specified type
          
          \param type, DeviceType - see documentation for function getDescriptor() above
          
          \return int, the available device model for a specified type
          
              
      Specified by:
      getAvailableDeviceForTypeCount in interface DeviceFactory
      Parameters:
      type - Takes in a parameter of type
      Returns:
      int Returns a int
    • getAvailableDeviceForTypeAt

      public DeviceDescriptor getAvailableDeviceForTypeAt(DeviceType type, int index)
      Information provided by the PKI file:
      
          \brief Returns the available device descriptor of a specified type at a specified index
          
          \param type, DeviceType - see documentation for function getDescriptor() above
          
          \param index, a specified index
          
          \return DeviceDescriptor, DeviceDescriptor object
          
              
      Specified by:
      getAvailableDeviceForTypeAt in interface DeviceFactory
      Parameters:
      type - Takes in a parameter of type
      index - Takes in a parameter of index
      Returns:
      DeviceDescriptor Returns a DeviceDescriptor